package com.wang.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.mall.bean.SysRole;
import com.wang.mall.util.PageUtils;

import java.util.List;

public interface SysRoleService extends IService<SysRole> {


    List<SysRole> findByUserId(Long userId);

    public List<String> findRoleNameByUserId(Long userId);

    PageUtils queryPage(Integer page, Integer limit, String roleName);

    List<SysRole> select();

    public boolean isAdmin();

    public boolean isAdmin(Long userId);

    void saveRole(SysRole role);

    void deleteBatch(Long[] roleIds);

    void update(SysRole role);

    List<Long> queryRoleIdList(Long createUserId);

}
